package org.ewaf.framework.workflow.message;

import java.util.Date;

public class DefaultWorkflowMessage implements WorkflowMessage , PreMessageAware {

	private String content;
	private Date gmtCreate;
	private String id;
	private WorkflowMessage preMessage;
	private String receiver;
	private String sender;
	private String title;
	private String name;
	
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public WorkflowMessage getPreMessage() {
		return preMessage;
	}
	
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return name;
	}
	@Override
	public void setPreMessage(WorkflowMessage preMessage) {
		this.preMessage = preMessage;
		
	}

}
